package org.ascollada.events
{
	import flash.events.Event;

	public class DaeFileEvent extends Event
	{
		public static const LOAD_COMPLETE :String = "DAE_LOAD_COMPLETE";
		public static const LOAD_PROGRESS :String = "DAE_LOAD_PROGRESS";
		public static const LOAD_ERROR :String = "DAE_LOAD_ERROR";
				
		public var filename :String;
		public var message :String;
		public var bytesTotal :uint;
		public var bytesLoaded :uint;
		
		public function DaeFileEvent(type:String, filename:String="", message:String="", bytesTotal:uint=0, bytesLoaded:uint=0, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.filename = filename;
			this.message = message;
			this.bytesTotal = bytesTotal;
			this.bytesLoaded = bytesLoaded;
		}
		
		public override function clone():Event
		{
			return new DaeFileEvent(type, filename, message, bytesTotal, bytesLoaded, bubbles, cancelable);
		}
	}
}